temp = list(input())
i = 0
while i < len(temp):
    if 65 <= ord(temp[i]) < 87:
        temp[i] = chr(ord(temp[i]) + 4)
    elif 87 <= ord(temp[i]) <= 90:
        temp[i] = chr(ord(temp[i]) - 22)
    i += 1
print(''.join(temp))
